import Cookies from 'js-cookie'

const TokenKey = 'acs_template'

export function getToken () {
  return Cookies.get(TokenKey)
}

export function setToken (token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken () {
  return Cookies.remove(TokenKey)
}

export function setStorage (key, value) {
  window.localStorage.setItem(key, value)
}

export function getStorage (key) {
  return window.localStorage.getItem(key)
}

export function clearStorage (key) {
  return window.localStorage.clear()
}
